package com.lb.shopguide.adapter;

import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lb.shopguide.R;
import com.lb.shopguide.entity.GuideActivityBean;
import com.lb.shopguide.util.pic.ImageLoaderUtils;

import java.util.List;

/**
 * Created by kang on 2017/8/3.
 */

public class AdapterGuideActivity extends BaseQuickAdapter<GuideActivityBean, BaseViewHolder> {
    public AdapterGuideActivity(int layoutResId, List<GuideActivityBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GuideActivityBean item) {
        View view = helper.itemView;
        ImageView ivBack = view.findViewById(R.id.iv_activity);
        ImageLoaderUtils.getGlideManager().asBitmap().load(item.getActPicUrl()).apply(ImageLoaderUtils.getSGCommonGlideOption(8)).into(ivBack);
    }
}
